package com.dbpms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbpms.mapper.testMapper;
import com.dbpms.pojo.TestClass;
import com.dbpms.service.ItestService;
import org.springframework.stereotype.Service;

@Service
public class testServiceImpl extends ServiceImpl<testMapper, TestClass> implements ItestService  {


    @Override
    public TestClass login(String name) {
                TestClass testClass = lambdaQuery()
                .eq(TestClass::getName, name)
                .one();
        return testClass;
    }

    @Override
    public boolean deleteNoticeInfo(int notice_id) {
        return removeById(notice_id);
    }
}
